package fr.xde.f2f.model;

import java.util.ArrayList;
import java.util.List;

public class OrgaGroup extends OrgaEntry{



	protected List<OrgaGroup> subGroups = new ArrayList<OrgaGroup>();
	protected List<OrgaPerson> people = new ArrayList<OrgaPerson>();
	
	public OrgaGroup(){
		
	}
	
	public boolean addPerson(OrgaPerson p){
		return people.add(p);
	}

	public List<OrgaPerson>getPeople(){
		return people;
	}
	
	public boolean addSubGroup(OrgaGroup child) {
		return subGroups.add(child);
	}
	
	public List<OrgaGroup> getSubGroups(){
		return subGroups;
	}

}
